package cn.tedu.rms.orderDetail.service.impl;

import cn.tedu.rms.orderDetail.mapper.OrderDetailMapper;
import cn.tedu.rms.orderDetail.pojo.vo.OrderDetailVO;
import cn.tedu.rms.orderDetail.service.OrderDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class OrderDetailServeImpl implements OrderDetailService {
    @Autowired
    private OrderDetailMapper reservationMapper;
    @Override
    public List<OrderDetailVO> selectDish(Long id) {
        List<OrderDetailVO>  list = reservationMapper.selectDish(id);
        log.debug("查询到的集合为"+list);
        return list;
    }
}
